home *** CD-ROM | disk | FTP | other *** search
/ Tripas 4 / TRIPAS 004.iso / sin.EXE / SIN / BASE / models / view_pulse2.def < prev    next >
Encoding:
Text File  |  1998-11-03  |  7.8 KB  |  185 lines

  1. SDEF
  2. // -----------------------------------------------------------------------------
  3. //  $Logfile:: /Quake 2 Engine/Sin/Base Sin Data/Models/Weapon/view_pulse2.de $
  4. // $Revision:: 37                                                             $
  5. //   $Author:: Jimdose                                                        $
  6. //     $Date:: 10/22/98 12:16a                                                $
  7. //
  8. // Copyright (C) 1998 by Ritual Entertainment, Inc.
  9. // All rights reserved.
  10. //
  11. // This source may not be distributed and/or modified without
  12. // expressly written permission by Ritual Entertainment, Inc.
  13. //
  14. // This is a model definition file.  It is to be used in conjunction with Sin.
  15. //
  16. // -----------------------------------------------------------------------------
  17. // MODEL DESCRIPTION:
  18. // View Weapon Model: Pulse Rifle.
  19. //
  20. // MODEL AUTHOR:
  21. // Michael
  22. //
  23.  
  24. // -----------------------------------------------------------------------------
  25. // FILE DECLARATIONS
  26. //
  27. // Model Commands
  28. path models/pulse3
  29. origin 0 -25 -73
  30.  
  31. // Base Model
  32. pulse_base.sbm
  33.  
  34. // Skins
  35. normal                pulse_base.tga
  36.  
  37. // Normal Animations
  38. ready                 pulse_ready.sam
  39. secondaryready      pulse_ready.sam
  40. primaryfire            pulse_fire1.sam
  41. secondaryfire        pulse_fire2.sam
  42. primaryidle            pulse_idle1.sam
  43. secondaryidle        pulse_idle2.sam
  44. primary2secondary    pulse_switchto.sam
  45. secondary2primary    pulse_switchback.sam
  46. spindown            pulse_fire2spindown.sam
  47. putaway                pulse_putaway.sam
  48. primaryputaway        pulse_putaway.sam
  49. secondaryputaway    pulse_putaway.sam
  50.  
  51. // Define model groups
  52. id  10 group hatch twosided translucent66
  53. id  20 group redlight fullbright
  54. id  30 group cell envmapped
  55. id  40 group bluecell fullbright translucent66
  56. id 200 group weapon bone barrel 0 180 90
  57.  
  58. // -----------------------------------------------------------------------------
  59. // INITIALIZATION SECTION
  60. //
  61. !init:
  62.  
  63. // Class Setup
  64. server actionincrement 18
  65. server setaimanim primaryidle 0
  66.  
  67. // Client Sound Aliases
  68. client aliascache snd_fire1        "weapons/pulse/fire2d.wav"
  69. client aliascache snd_spark1       "weapons/pulse2/electrk2.wav"
  70. client aliascache snd_open1        "weapons/pulse/open1.wav"
  71. client aliascache snd_loop1        "weapons/pulse/loop1.wav"
  72. client aliascache snd_close1       "weapons/pulse/close1.wav"
  73. client aliascache snd_altloop1     "weapons/pulse2/idle2.wav"
  74. client aliascache snd_altdownloop1 "weapons/pulse2/down2.wav"
  75. client aliascache snd_altfire1     "weapons/pulse2/mix2a.wav"
  76. client aliascache snd_altopen1     "weapons/pulse2/up.wav"
  77. client aliascache snd_altclose1    "weapons/pulse2/down.wav"
  78.  
  79. // -----------------------------------------------------------------------------
  80. // MAIN SECTION
  81. //
  82. !main:
  83.  
  84. // Define the client/server animation references
  85. client ready    6 randomsound snd_open 1 1
  86. client ready last randomsound snd_loop .6 7
  87. server ready    6 movementsound
  88.  
  89. server secondary2primary first setaimanim primaryidle 0
  90. client secondary2primary first randomsound snd_altclose 1 1
  91. client secondary2primary first randomsound snd_altdownloop1 .2 7
  92.  
  93. client secondary2primary last randomsound snd_loop .4 7
  94. server secondary2primary    6 movementsound
  95.  
  96. server primary2secondary first setaimanim secondaryidle 0
  97. client primary2secondary first randomsound snd_altopen 1 7
  98. client primary2secondary     6 randomsound snd_open 1 1
  99. client primary2secondary  last randomsound snd_altloop .4 7
  100. server primary2secondary     6 movementsound
  101.  
  102. client primaryfire first attach barrel sprites/pulse_muzzle.spr time 0.1 scale 1.0 
  103. client primaryfire first randomsound snd_fire 1 1
  104. // dlight <red> <rand_red_amount> <green> <rand_green_amount> <blue> <rand_blue_amount> <radius> <rand_radius_amount> <life> <decay>
  105. client primaryfire first dlight 0 0 0 0 1 0 300 0 0.6 0.8
  106. server primaryfire first weaponsound
  107. server primaryfire first shoot
  108.  
  109. //client secondaryfire first attach barrel sprites/pulse_muzzle.spr animate fast
  110.  
  111. client secondaryfire first randomsound snd_spark .8 1
  112. client secondaryfire start randomsound snd_altfire 1 2
  113. server secondaryfire first weaponsound
  114. // dlight <red> <rand_red_amount> <green> <rand_green_amount> <blue> <rand_blue_amount> <radius> <rand_radius_amount> <life> <decay>
  115. server secondaryfire 1 shoot 512
  116. client secondaryfire 1 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  117. client secondaryfire 1 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  118. client secondaryfire 1 shootbeam barrel models/beam.def length 610
  119. client secondaryfire 1 shootbullets barrel 1 0 0 0 610
  120. client secondaryfire 1 dlight 0 0 0 0 1 0 300 0 0.6 0.8
  121. server secondaryfire 2 shoot 512
  122. client secondaryfire 2 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  123. client secondaryfire 2 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  124. client secondaryfire 2 shootbeam barrel models/beam.def length 610
  125. client secondaryfire 2 shootbullets barrel 1 0 0 0 610
  126. client secondaryfire 2 dlight 0 0 0 0 1 0 200 0 0.6 0.8
  127. server secondaryfire 3 shoot 512
  128. client secondaryfire 3 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  129. client secondaryfire 3 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  130. client secondaryfire 3 shootbeam barrel models/beam.def length 610
  131. client secondaryfire 3 shootbullets barrel 1 0 0 0 610
  132. client secondaryfire 3 dlight 0 0 0 0 1 0 300 0 0.6 0.8
  133. server secondaryfire 4 shoot 512
  134. client secondaryfire 4 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  135. client secondaryfire 4 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  136. client secondaryfire 4 shootbeam barrel models/beam.def length 610
  137. client secondaryfire 4 shootbullets barrel 1 0 0 0 610
  138. client secondaryfire 4 dlight 0 0 0 0 1 0 200 0 0.6 0.8
  139. server secondaryfire 5 shoot 512
  140. client secondaryfire 5 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  141. client secondaryfire 5 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  142. client secondaryfire 5 shootbeam barrel models/beam.def length 610
  143. client secondaryfire 5 shootbullets barrel 1 0 0 0 610
  144. client secondaryfire 5 dlight 0 0 0 0 1 0 300 0 0.6 0.8
  145. server secondaryfire 6 shoot 512
  146. client secondaryfire 6 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  147. client secondaryfire 6 shootbeam barrel models/lightning.def lightning length 512 minoffset 1 maxoffset 25
  148. client secondaryfire 6 shootbeam barrel models/beam.def length 610
  149. client secondaryfire 6 shootbullets barrel 1 0 0 0 610
  150. client secondaryfire 6 dlight 0 0 0 0 1 0 200 0 0.6 0.8
  151.  
  152. //client secondaryfire last randomsound null_sound 1
  153.  
  154. client spindown         first randomsound snd_spindown 1 2
  155.  
  156. client putaway          first randomsound snd_close 1 7
  157. server putaway          first movementsound
  158.  
  159. client primaryputaway   first randomsound snd_close 1 7
  160. server primaryputaway   first movementsound
  161.  
  162. client secondaryidle    first randomsound null_sound 1 7
  163.  
  164. client secondaryputaway first randomsound snd_altclose 1 7
  165. client secondaryputaway     1 randomsound snd_close 1 1
  166. server secondaryputaway first movementsound
  167.  
  168. // -----------------------------------------------------------------------------
  169. // SOURCESAFE Update Log
  170. //
  171. // $Log:: /Quake 2 Engine/Sin/Base Sin Data/Models/Weapon/view_pulse2.def     $
  172. // 
  173. // 37    10/22/98 12:16a Jimdose
  174. // added setaimanim
  175. // 
  176. // 36    10/16/98 9:49p Aldie
  177. // 
  178. // 35    10/04/98 10:27p Aldie
  179. // Updated shoot bullets command
  180. // 
  181. // 34    9/30/98 2:41p Joeske
  182. // Added in formatting.
  183. // 
  184. // -----------------------------------------------------------------------------
  185.